package com.system.test.designPattern.template;

/**
 * 悍马H2型号模型
 * @author kaifa002
 *
 */
public class HummerH2Model extends HummerModel {

	private boolean alarmFlag = true;
	
	@Override
	public void start() {
		System.out.println("悍马H2启动.....");
	}

	@Override
	public void stop() {
		System.out.println("悍马H2停车.....");
	}

	@Override
	public void alarm() {
		System.out.println("悍马H2鸣笛.....");
	}

	@Override
	public void engineBoom() {
		System.out.println("悍马H2引擎Boom.....");
	}

	@Override
    public boolean alarmFlag() {
        return this.alarmFlag;
    }
	
    public void setAlarmFlag(boolean alarmFlag){
        this.alarmFlag = alarmFlag;
    }
    
}